#pragma pack_matrix(row_major)

#include "Defs/types.hlsli"
#include "Defs/ConstantBuffers.hlsli"

struct OUT
{
	float4 position : SV_POSITION;
	float2 uv : TEXCOORD;
};

OUT main(float3 position : POSITION, float3 normal : NORMAL, float3 tangent : TANGENT, float2 uv : TEXCOORD)
{
	OUT outval = (OUT)0;

	float4 localH = mul(float4(position, 1.f), world);
	outval.position = mul(localH, viewProj);
	outval.uv = uv;

	return outval;
}